Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​Func<​T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TResult>
Assembly: System.Runtime
Inheritance: object → delegate → MulticastDelegate → Func
Implemented Interfaces
- ICloneable Implemented by: delegate
- ISerializable Implemented by: delegate
Encapsulates a method that has 13 parameters and returns a value of the type specified by the <typeparamref name="TResult" /> parameter.
Properties
public
bool
HasSingleTarget
Gets a value that indicates whether the <see cref="T:System.Delegate" /> has a single invocation target.
public
MethodInfo
Method
Gets the method represented by the delegate.
public
object
Target
Gets the class instance on which the current delegate invokes the instance method.
Methods
public
TResult
Invoke​(T1 arg1,
T2 arg2,
T3 arg3,
T4 arg4,
T5 arg5,
T6 arg6,
T7 arg7,
T8 arg8,
T9 arg9,
T10 arg10,
T11 arg11,
T12 arg12,
T13 arg13)
public
IAsyncResult
BeginInvoke​(T1 arg1,
T2 arg2,
T3 arg3,
T4 arg4,
T5 arg5,
T6 arg6,
T7 arg7,
T8 arg8,
T9 arg9,
T10 arg10,
T11 arg11,
T12 arg12,
T13 arg13,
AsyncCallback callback,
object object)
protected
delegate
CombineImpl​(delegate follow)
Inherited from MulticastDelegate
Combines this <see cref="T:System.Delegate" /> with the specified <see cref="T:System.Delegate" /> to form a new delegate.
Returns A delegate that is the new root of the <see cref="T:System.MulticastDelegate" /> invocation list.
follow
The delegate to combine with this delegate.
public
bool
Equals​(object obj)
Inherited from MulticastDelegate
Determines whether this multicast delegate and the specified object are equal.
Returns <see langword="true" /> if <paramref name="obj" /> and this instance have the same invocation lists; otherwise, <see langword="false" /> .
obj
The object to compare with this instance.
public
int
GetHashCode​()
Inherited from MulticastDelegate
Returns the hash code for this instance.
Returns A 32-bit signed integer hash code.
public
delegate[]
GetInvocationList​()
Inherited from MulticastDelegate
Returns the invocation list of this multicast delegate, in invocation order.
Returns An array of delegates whose invocation lists collectively match the invocation list of this instance.
protected
MethodInfo
GetMethodImpl​()
Inherited from MulticastDelegate
Returns a method represented by the current <see cref="T:System.MulticastDelegate" /> .
Returns A method represented by the current <see cref="T:System.MulticastDelegate" /> .
public
void
GetObjectData​(SerializationInfo info,
StreamingContext context)
Inherited from MulticastDelegate
Populates a <see cref="T:System.Runtime.Serialization.SerializationInfo" /> object with all the data needed to serialize this instance.
info
An object that holds all the data needed to serialize or deserialize this instance.
context
(Reserved) The location where serialized data is stored and retrieved.
protected
delegate
RemoveImpl​(delegate value)
Inherited from MulticastDelegate
Removes an element from the invocation list of this <see cref="T:System.MulticastDelegate" /> that is equal to the specified delegate.
Returns If <paramref name="value" /> is found in the invocation list for this instance, then a new <see cref="T:System.Delegate" /> without <paramref name="value" /> in its invocation list; otherwise, this instance with its original invocation list.
value
The delegate to search for in the invocation list.
public
object
Clone​()
Inherited from delegate
Creates a shallow copy of the delegate.
Returns A shallow copy of the delegate.
public
object
DynamicInvoke​(object[] args)
Inherited from delegate
Dynamically invokes (late-bound) the method represented by the current delegate.
Returns The object returned by the method represented by the delegate.
args
An array of objects that are the arguments to pass to the method represented by the current delegate.
-or-
<see langword="null" /> , if the method represented by the current delegate does not require arguments.
protected
object
DynamicInvokeImpl​(object[] args)
Inherited from delegate
Dynamically invokes (late-bound) the method represented by the current delegate.
Returns The object returned by the method represented by the delegate.
args
An array of objects that are the arguments to pass to the method represented by the current delegate.
-or-
<see langword="null" /> , if the method represented by the current delegate does not require arguments.
protected
void
Finalize​()
Inherited from object
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
public
Type
GetType​()
Inherited from object
Gets the <see cref="T:System.Type" /> of the current instance.
Returns The exact runtime type of the current instance.
protected
object
MemberwiseClone​()
Inherited from object
Creates a shallow copy of the current <see cref="T:System.Object" /> .
Returns A shallow copy of the current <see cref="T:System.Object" /> .
public
string
ToString​()
Inherited from object
Returns a string that represents the current object.
Returns A string that represents the current object.